import 'dart:convert';
import 'package:testlzhu/generated/json/base/json_field.dart';
import 'package:testlzhu/generated/json/home_bean_entity.g.dart';

@JsonSerializable()
class HomeBeanEntity {

	List<HomeBeanServices>? services;
	List<HomeBeanAds>? ads;
	@JSONField(name: "is_show_rollnews")
	bool? isShowRollnews;
	List<HomeBeanRollnews>? rollnews;
	@JSONField(name: "is_show_activity")
	int? isShowActivity;
	List<HomeBeanActivies>? activies;
  
  HomeBeanEntity();

  factory HomeBeanEntity.fromJson(Map<String, dynamic> json) => $HomeBeanEntityFromJson(json);

  Map<String, dynamic> toJson() => $HomeBeanEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class HomeBeanServices {

	String? code;
	String? title;
	String? icon;
	@JSONField(name: "show_righttop_icon")
	int? showRighttopIcon;
  
  HomeBeanServices();

  factory HomeBeanServices.fromJson(Map<String, dynamic> json) => $HomeBeanServicesFromJson(json);

  Map<String, dynamic> toJson() => $HomeBeanServicesToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class HomeBeanAds {

	int? id;
	String? title;
	String? pic;
	String? url;
	int? positionid;
	int? positionindex;
  
  HomeBeanAds();

  factory HomeBeanAds.fromJson(Map<String, dynamic> json) => $HomeBeanAdsFromJson(json);

  Map<String, dynamic> toJson() => $HomeBeanAdsToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class HomeBeanRollnews {

	int? id;
	String? title;
  
  HomeBeanRollnews();

  factory HomeBeanRollnews.fromJson(Map<String, dynamic> json) => $HomeBeanRollnewsFromJson(json);

  Map<String, dynamic> toJson() => $HomeBeanRollnewsToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class HomeBeanActivies {

	String? title;
	String? pic;
	String? url;
	String? brief;
	@JSONField(name: "full_pic")
	String? fullPic;
  
  HomeBeanActivies();

  factory HomeBeanActivies.fromJson(Map<String, dynamic> json) => $HomeBeanActiviesFromJson(json);

  Map<String, dynamic> toJson() => $HomeBeanActiviesToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}